package com.yanqu.road.entity.log.newmonopolymarket;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_new_monopoly_market_office_user_seat_log_data", autoSave = true)
public class NewMonopolyMarketOfficeUserSeatLogData extends DataObject {
    @FieldTypeAnnotation(select = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "离座位置的id")
    private int posIndex;
    @FieldTypeAnnotation(desc = "周id")
    private int weekId;
    @FieldTypeAnnotation(desc = "资源分组id")
    private long resGroupId;
    @FieldTypeAnnotation(desc = "离座位置的等级")
    private int level;
    @FieldTypeAnnotation(desc = "离座位置的编号")
    private int no;
    @FieldTypeAnnotation(desc = "变更类型 0重置 1被抢占 2撤回 3抢占别人")
    private int type;
    @FieldTypeAnnotation(desc = "离座时间关引数")
    private int num;
    @FieldTypeAnnotation(desc = "上次入座时间")
    private int lastSeatTime;
    @FieldTypeAnnotation(desc = "离座时间")
    private Date logTime;

    public NewMonopolyMarketOfficeUserSeatLogData(long userId, int weekId, int resGroupId, int posIndex, int level, int no, int type, int num, int lastSeatTime) {
        this.userId = userId;
        this.weekId = weekId;
        this.resGroupId = resGroupId;
        this.posIndex = posIndex;
        this.level = level;
        this.no = no;
        this.type = type;
        this.num = num;
        this.lastSeatTime = lastSeatTime;
        this.logTime = new Date();
    }


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPosIndex() {
        return posIndex;
    }

    public void setPosIndex(int posIndex) {
        this.posIndex = posIndex;
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        this.weekId = weekId;
    }

    public long getResGroupId() {
        return resGroupId;
    }

    public void setResGroupId(long resGroupId) {
        this.resGroupId = resGroupId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getLastSeatTime() {
        return lastSeatTime;
    }

    public void setLastSeatTime(int lastSeatTime) {
        this.lastSeatTime = lastSeatTime;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
